package com.great.medical.classify.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.great.medical.classify.db.mapper.ClassifyMapper;
import com.great.medical.classify.db.model.Classify;
import com.great.medical.classify.service.ClassifyService;
import com.great.medical.common.PageParams;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
@Primary
@Slf4j
public class ClassifyServiceImpl extends ServiceImpl<ClassifyMapper, Classify> implements ClassifyService {
    @Override
    public IPage<Classify> getPageList(Map map) {
        PageParams pageParams = new PageParams(map);
        final IPage<Classify> awardIPage = this.getBaseMapper().selectPage(pageParams, new QueryWrapper());
        return awardIPage;
    }
}
